# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=highscore
pkgver=40.0
pkgrel=4
pkgdesc="Retro gaming application"
url="https://gitlab.gnome.org/World/highscore"
arch="all !s390x" # grilo
license="GPL-3.0-or-later"
makedepends="
	grilo-dev
	gtk+3.0-dev
	libarchive-dev
	libhandy1-dev
	libmanette-dev
	librsvg-dev
	libsoup3-dev
	libxml2-dev
	meson
	retro-gtk-dev
	sqlite-dev
	tinysparql-dev
	vala
	"
subpackages="$pkgname-lang"
#source="https://gitlab.gnome.org/World/highscore/-/archive/$pkgver/highscore-$pkgver.tar.gz
source="$pkgname-$pkgver.tar.gz::https://gitlab.gnome.org/Archive/gnome-games/-/archive/$pkgver/gnome-games-$pkgver.tar.gz
	0001-merge-file.patch
	0002-use-tracker-3.0.patch
	libsoup3.patch
	"
options="!check"
builddir="$srcdir/gnome-games-$pkgver"

provides="gnome-games=$pkgver-r$pkgrel"
replaces="gnome-games"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a98f85aab11d67e1b5845b392c2893f90d31af77f4bba630831b0591f5ab47764a5e7f246287ac9b7c27b8d81f74538bba20e80b4b2f996cb964e391002eb02d  highscore-40.0.tar.gz
e303490fc6b972e42b2c7f32e48f70560762923561ce278479c97e9106e9356c8042b84f5282ca24d411d1cb2f883ca035c8e979a2640645dc0dd31042e3b4cc  0001-merge-file.patch
4568cfc6b34ff6e28102f2da2bf6edc93448076c2246e65ad9137288299917afc69d6ee9a0470b15d5226974f1e9088ef9c23a363fdc5a3da6ed61c506e8760b  0002-use-tracker-3.0.patch
d02a285893435d741569df8a4f9ecc5416212e239393784d3b69ec50ad8f7f13448a8478be7ac8cad17cd8692f796001b05d60eaa384d24ca40cbbaa662bbea9  libsoup3.patch
"
